package api.ejb;
import java.util.List;
import java.util.Map;

import javax.ejb.Local;

import p3_entities.Usermessage;

import api.InvalidAuthenticationException;


@Local
public interface IMessages {
	public static enum MessageBoardsType {
		PUBLIC, PRIVATE
	}
	
	
	
	boolean publishPublicMessage(int ownerId, int posterId, String message, int photoId)
		throws InvalidAuthenticationException;
	
	boolean publishPrivateMessage(int ownerId, int posterId, String message, int photoId)
		throws InvalidAuthenticationException;
	
	List<Usermessage> getPublicMessageList(int uid)
		throws InvalidAuthenticationException;
	
	List<Usermessage> getPrivateMessageList(int uid)
		throws InvalidAuthenticationException;
	
	Map getDigestDayilyUserMessages();

	
	
}
